home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / themes / aqua / background.php next >
PHP Script  |  2010-05-19  |  3KB  |  79 lines

  1. <?php
  2.  
  3. /**
  4.  * Top banner
  5.  */
  6. ?>
  7. <div class="mainFrameBanner">
  8. <a href="javascript:logout()" <?php echo outToolTip(cfCaption('genLogout'));?> style="float:right"><img src="/themes/aqua/logout.png" alt=""></a>
  9. <div style="float:right;text-align:right;font-size:85%;margin-right:1em;line-height:20px">
  10. <?php
  11.     // Theme selection control
  12.     if(cfGGetVar('allowUserThemeChange')) echo outThemeSelectionControl('user',false,'POST','',true,true);
  13.  
  14.     // config button
  15.     echo '<a href="javascript:'.fConfigLink().'" id="menuConfig" class="menuItem" style="vertical-align:middle;margin-left:1em;margin-right:0px">';
  16.     echo outImage(outIcon('config3'),false, outToolTip(cfCaption('mainConfigButton')), 'width:16px; height:16px;');
  17.     echo "</a><br>\n";
  18.  
  19.     // Clock
  20.     fInsertClock(true);
  21.  
  22.     echo '</div>';
  23.  
  24. echo '<div style="background:white;margin:2px;margin-right:10px;padding:2px;border:1px solid #63829F;float:left"><img src="'.cfExtGFX('/gfx/icons/'.WEnv::user()->getVar('icon'),30,30).'" alt=""></div><div class="textShadow" style="margin-top:10px;height:auto;width:200px">'.cfUTF8Encode(WEnv::user()->getVar('name')).'</div>';
  25. ?>
  26. </div>
  27. <?php
  28.  
  29. /**
  30.  * Left-side menu
  31.  */
  32. ?>
  33. <div id="winBarOuter" class="menuFrameBody <?php if(cfGetBrowser()!=='ie') echo ' dropShadow';?>" style="position:absolute;bottom:0px;width:218px;left:-218px;top:40px;overflow:auto">
  34. <?php
  35. if(cfGetBrowser()=='ie'){
  36.     '<div style="background:url(/gfx/s/r.png);width:4px;right:0px;height:100%"></div>';
  37. }
  38. // Display resources buttons
  39. foreach(WEnv::user()->getResourcesLinked() as $rid=>$res){
  40.     echo '<a id="R'.$rid.'" href="javascript:winMonitor(\''.$rid.'\');'.$res->getVar('resourceJsLink').'" class="menuLarge">';
  41.     echo '<span class="menuFrame"><img src="'.$res->config()->icon16().'" style="width:16px;height:16px" alt=""></span>';
  42.     echo '<span class="menuName">'.cfUTF8Encode(cfStrTruncate($res->getVar('name'),32)).'</span>';
  43.     echo '<span>'.cfUTF8Encode($res->config()->definition('resourceTypeLabel')).'</span><br clear="all">';
  44.     echo "</a>\n";
  45. }
  46. ?>
  47. </div>
  48. <?php
  49.  
  50. // Weezo.net link
  51. require_once('outputFunctions.php');
  52. echo '<span onclick="window.open(\''.APP_SITE.'\')" style="color:#555;cursor:pointer; position:absolute;bottom:7px;left:240px">Weezo - '.cfGGetVar('appVersion').' '.outImage(outIcon('logoSmall'),'#',false,'vertical-align:top;margin-left:1em').'</span>';
  53. ?>
  54. <script type="text/javascript">
  55. winPadding={'top':38,'left':216,'bottom':-3,'right':-3};
  56. function winMonitor(win,action){
  57.     var rid,e,l;
  58.     if(typeof win=='string') rid=win; else rid=win.getResourceId();
  59.     if(!rid||!dgi("R"+rid)) return;
  60.     if(action==='minimize') {
  61.         if(dgi(rid)) dgi(rid).className='menuLarge reduced';
  62.         if(dgi('R'+rid)) dgi('R'+rid).className='menuLarge reduced';
  63.         return;
  64.     }
  65.     l=dgi('winBarOuter').getElementsByTagName("A");
  66.     for(e in l){
  67.         if(l[e].id!="R"+rid || action=='close') {
  68.                 if(l[e].id!==undefined)    $(l[e].id).e.className().remove('selected'); 
  69.             }
  70.             else 
  71.                 l[e].className='menuLarge selected';
  72.     }
  73. }
  74. function resizeFrames(){alignBottom(dgi('winBarOuter'),D.body,4)}
  75. D.body.onresize=resizeFrames;
  76. resizeFrames();
  77. if(windowsAnimation) wl.anim({'item':dgi('winBarOuter'),'duration':2000,'function':function(p,anim){return {'left':(218*(-(Math.exp(-8*p)*Math.abs(Math.cos(12*p))))+'px')}}});
  78. else dgi('winBarOuter').style.left='0px';
  79. </script>